package com.study.javaOther.chain.permission.condition;

import com.study.javaOther.chain.accoperation.IACCOperation;

/**
 * @Name: BinocularPermission
 * @Description: 双目权限
 * @Author: yn
 * @CreateDate: 2022/4/14 16:12
 * @Remark: 特殊说明
 * @Version: 1.0
 */
public class BinocularCondition extends ICondition {
    private String right;

    public BinocularCondition(String left,String right,IACCOperation operation){
        super(left,operation);
        this.right=right;
    }

    @Override
    public boolean verify(){
        return operation.match(this.left,this.right);
    }
}
